package com.yugu.park.business.mapper;

import com.yugu.park.business.entity.CardInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yugu.util.SysQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author Noble-Six
* @description 针对表【t_card_info】的数据库操作Mapper
* @createDate 2024-04-25 11:02:15
* @Entity com.yugu.park.business.entity.CardInfo
*/
@Mapper
public interface CardInfoMapper extends BaseMapper<CardInfo> {

    List<CardInfo> page(@Param("search") SysQueryParam search);

    void removeIds(@Param("list") List<String> asList);
    @MapKey("month")
    List<Map<String, Integer>> lineChart(@Param("yaer") Integer integer);
    @MapKey("sex")
    List<Map<String, Integer>> getGender();
    @MapKey("age")
    List<Map<String, Integer>> ageStatistics();
}




